<template>
    <div>
        TEXT
        {{ num.str }}
        <input type="text" placeholder="请输入答案" v-model="num.d">
        {{ num.d }}
    </div>
</template>

<script setup>
import { onMounted, reactive } from 'vue'
// import { random } from '_@types_lodash@4.14.185@@types/lodash';

const num = reactive({
    a: null,
    b: null,
    c: null,
    d: null,
    str: null
})

function randomNum() {
    num.a = Math.round(Math.random() * 100)
    num.b = Math.round(Math.random() * 100)
    num.str = num.a + "+" + num.b + "="
    num.c = num.a + num.b;
}

onMounted(() => {
    randomNum()
})



</script>

<style lang="scss" scoped>

</style>